package com.kstech.mp3604


import com.kstech.mp3604.manager.serialComm.SerialManager

import org.junit.Test

/**
 * author: blankii
 * created on: 2025/6/16 13:40
 * description:
 */
class Main {

    @Test
    fun main() {
//        println(DataUtil.hexB2L("201f"))
//        println(DataUtil.hexL2B("201f"))
//        println(packUp590("2001", intToHex4(0)))
//        println(packUp590("2007", intToHex4(1000000000)))
//
//        println("AB".toInt(16))
//
//        println(intToHex2(1200))
//
//        println(packUp190(12, 1200, 1300, 45000))
//
//        println(packUp290(1200000, 1300, 45000))

        println(SerialManager.upPackHexString("0310f100000000000000"))

        println(SerialManager.upPackHexString("0210f100123456789abc"))

        println(SerialManager.upPackHexString("0410f100123456789abc"))

        println(SerialManager.upPackHexString("06104000210000000000"))
    }
}